package com.qyj.spring_boot_02.controller;

import org.springframework.web.bind.annotation.*;

import javax.websocket.server.PathParam;

@RestController
public class TestContraller {
    @GetMapping("/test")
    public String test(){
        return "afaaagasf";
    }
    @GetMapping(value = "/test/{path}")
    public String test1(@PathVariable String path) {
        // 您的业务逻辑代码

        return "成功处理"+path;
    }
    @PostMapping("/test/reqdata")
    public String test2(@RequestBody String s){
        return s;
    }
}
